package com.example.lombok.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/lombok")
public class LombokController {


    @RequestMapping("/first")
    public String first() {
        int t = 30;
        int oldT = 15;
        log.debug("Temperature set to {}. Old temperature was {}.", t, oldT);
        log.info("hello first");
        log.error("hello error");
        return "hello first";
    }
}
